package cn.yuanqiao.web.core.config;

import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: JacksonConfig
 * @Description: 类的描述
 * @author: lihuahua
 * @date: 2024/4/15 15:08
 * @Blog: huahuacoco.top
 */

@Configuration
public class JacksonConfig {

    @Bean
    public Jackson2ObjectMapperBuilderCustomizer customizer() {
        return builder -> builder.serializerByType(Long.class, new LongToStringSerializer());
    }
}
